package com.enhinck.dbutilweb.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.enhinck.dbutilweb.mapper.DatasourceConfMapper;
import com.enhinck.dbutilweb.model.domain.DatasourceConfDO;
import com.enhinck.dbutilweb.service.DatasourceConfService;
import org.springframework.stereotype.Service;

/**
 * 数据源表
 *
 * @author enhinck Generate auto created
 * @date 2021-03-03 10:52:04
 */
@Service
public class DatasourceConfServiceImpl extends ServiceImpl<DatasourceConfMapper, DatasourceConfDO> implements DatasourceConfService {

    /**
     * 分页
     *
     * @param pageQuery 基础分页查询条件
     * @return
     */
    @Override
    public Page<DatasourceConfDO> basePageVO(Page<DatasourceConfDO> pageQuery) {
        // 分页信息
        // 查询分页
        Page<DatasourceConfDO> page = getBaseMapper().selectPage(pageQuery,Wrappers.emptyWrapper());
        return page;
    }
}